Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DYN-7521 : fix output value for bool type #15525

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

BogdanZavu
Copy link
Contributor

@BogdanZavu BogdanZavu commented Oct 3, 2024

Purpose

While we were trying to marshal the output value from python into C# we were incorrectly converting a Boolean type into an int. That was happening because the check PyInt.IsIntType also considers internally in python that Bool is a sub-type of Int.

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Reviewers

@twastvedt

@twastvedt
Copy link
Contributor

Nice! Let's make this change in the package repo though, here: https://git.autodesk.com/Dynamo/DSPythonNet3/blob/master/DSPythonNet3/DSPythonNet3Evaluator.cs#L566.

@twastvedt
Copy link
Contributor

Or at least also there. Not sure if we need to keep this branch around now that we have the package?

@BogdanZavu
Copy link
Contributor Author

Hmm I guess we can keep for a little bit longer, might help with debugging.

@BogdanZavu BogdanZavu merged commit 083c75c into DynamoDS:pythonnet_3.1.0 Oct 4, 2024
20 of 22 checks passed
BogdanZavu added a commit that referenced this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants